<div class="layui-fluid" id="VIEW-list-table" lay-title="盘点机列表" lig-title="mach-title">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header" lig-lang="label-searchTitle">筛选数据</div>
                <div class="layui-card-body">
                    <div class="layui-row layui-col-space10 layui-form">
                        <form class="layui-form" lay-filter="lig-machine-searchform" id="lig-searchform">
                            <div class="layui-row">
                                <div class="layui-inline">
                                    <label class="layui-form-label" lig-lang="mach-machineXlh">序列号</label>
                                    <div class="layui-inline">
                                        <input type="text" class="layui-input" name="machineXlh"/>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6">
                                            <div class="layui-btn layui-btn-sm layui-btn-fluid"
                                                 lay-filter="lig-machine-search" lig-lang="btn-search">查询
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary" lig-lang="btn-reset">重置</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="layui-card">
                <div class="layui-card-body nepadmin-table-full">
                    <table lay-filter="lig-machine-table"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['admin', 'table', 'form', 'dropdown', 'laytpl', 'laydate', 'jquery', 'lig'], function (admin, table, form, dropdown, laytpl, laydate, $, lig) {
        form.render();

        lig.table({
            elem: '[lay-filter="lig-machine-table"]',
            url: 'pd/machine/cu/page',
            cols: [[
                {title: '<span lig-lang="mach-machineXlh">盘点机序列号</span>', field: 'machineXlh', minWidth: 120},
                {title: '<span lig-lang="mach-bdsj">绑定时间</span>', field: 'bdsj', minWidth: 120},
                {title: '<span lig-lang="mach-remark">备注</span>', field: 'remark', minWidth: 250}
            ]]
        }, {
            entity: 'machine',
            primaryField: 'machineId'});
    })
</script>